package com.wxf.vo;

import com.github.pagehelper.PageInfo;

public class ResultVO {
    private Object data;
    private PageInfo pageInfo;
    private String msg;
    private int statusCode = 200;

    public ResultVO() {
    }

    public ResultVO(String msg, int statusCode) {
        this.msg = msg;
        this.statusCode = statusCode;
    }

    public ResultVO(Object data, String msg, int statusCode) {
        this.data = data;
        this.msg = msg;
        this.statusCode = statusCode;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public PageInfo getPageInfo() {
        return pageInfo;
    }

    public void setPageInfo(PageInfo pageInfo) {
        this.pageInfo = pageInfo;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getStatusCode() {
        return statusCode;
    }

    public void setStatusCode(int statusCode) {
        this.statusCode = statusCode;
    }

    @Override
    public String toString() {
        return "ResultVO{" +
                "data=" + data +
                ", pageInfo=" + pageInfo +
                ", msg='" + msg + '\'' +
                ", statusCode=" + statusCode +
                '}';
    }
}
